
def get_user_id(user_name, user_list):
    """
    返回用户id，根据名称过滤
    :param user_name:
    :param user_list:
    :return:
    """
    return list(filter(lambda n: n.get("userName") == user_name, user_list))[0].get("userId")
